package utilities;

import java.util.Random;

public class RandomPassword {

	private final String ALPHABET = "0123456789abcdefghijklmnopqrstuvwxyz";
	private Random rnd = new Random(System.currentTimeMillis());
	static private final int LENGHT = 8;

	public String generate() {
		StringBuilder sb = new StringBuilder(LENGHT);
		for (int i = 0; i < LENGHT; i++) {
			sb.append(ALPHABET.charAt(rnd.nextInt(ALPHABET.length())));
		}
		return sb.toString();
	}
}